package com.pimwi.control.event
{
  import flash.events.Event;

  public class ContactEvent extends Event
  {
    public static const DEFAULT:String = "default";
    public static const DELETE_CONTACT:String = "deleteContact";
    public static const EDIT_CONTACT:String = "editContact";

    public var itemIndex:int;
    public var data:Object;

    public function ContactEvent(type:String = DEFAULT, itemIndex:int = 0, data:Object=null, bubbles:Boolean=false, cancelable:Boolean=false)
    {
      super(type, bubbles, cancelable);
      this.itemIndex = itemIndex;
      this.data = data;
    }

    override public function clone():Event
    {
      return new ContactEvent(DEFAULT, itemIndex, data, bubbles, cancelable);
    }
  }
}